package com.dt.dubai.mber.service;

import com.dt.dubai.mber.entity.MberCustomerCartEntity;
import com.dt.dubai.mber.service.innate.MberCustomerCartSerInnateAbsImp;
import com.dt.dubai.mber.service.ser.MberCustomerCartService;
import org.springframework.stereotype.Service;

@Service
public class MberCustomerCartServiceImp extends MberCustomerCartSerInnateAbsImp implements MberCustomerCartService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(MberCustomerCartEntity inEntity) {

    }

    @Override
    protected void userModEntity(MberCustomerCartEntity inEntity, MberCustomerCartEntity upEntity) {
        upEntity.setCustomerRecordId(inEntity.getCustomerRecordId()); // 顾客登录记录ID
        upEntity.setMerchantRecordId(inEntity.getMerchantRecordId()); // 商户记录ID
        upEntity.setCommodityCode(inEntity.getCommodityCode()); // 商品编码
        upEntity.setSkuRecordId(inEntity.getSkuRecordId()); // sku记录ID
        upEntity.setCommodityPicUrl(inEntity.getCommodityPicUrl()); // 商品图
        upEntity.setCommodityName(inEntity.getCommodityName()); // 商品名称
        upEntity.setCommodityNameSub(inEntity.getCommodityNameSub()); // 商品子名称
        upEntity.setCommodityDescribe(inEntity.getCommodityDescribe()); // 商品描述
        upEntity.setNum(inEntity.getNum()); // 数量
        upEntity.setCommodityPrice(inEntity.getCommodityPrice()); // 商品单价
        upEntity.setCommodityActivityPrice(inEntity.getCommodityActivityPrice()); // 活动单价
        upEntity.setCommodityActivity(inEntity.getCommodityActivity()); // 活动优惠属性

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/
}
